import { PropType } from 'vue';

declare type TextType = 'text' | 'password' | 'number' | 'textarea';

export const inputProps = {
	name: {
		type: String,
	},
	value: {
		type: [String, Number],
	},
	disabled: {
		type: Boolean,
		default: false,
	},
	readOnly: {
		type: Boolean,
		default: false,
	},
	placeholder: {
		type: String,
	},
	type: {
		type: String as PropType<TextType>,
		default: 'text',
	},
	unit: {
		type: String,
	},
};
